Skip to content

fix segfault on exit with python3#301

Open
amadeus84 wants to merge 15 commits intolava:masterfrom
amadeus84:master
Open

fix segfault on exit with python3#301
amadeus84 wants to merge 15 commits intolava:masterfrom
amadeus84:master

Conversation

@amadeus84
Copy link

Followed up on the analysis in this discussion https://stackoverflow.com/questions/67533541/py-finalize-resulting-in-segmentation-fault-for-python-3-9-but-not-for-python/67577360#67577360

and fixed the segfault by explicitly killing the _interpreter before return. I added that to all examples.

And while at it, I added a standalone compilation command (g++) as a comment and I fixed indentation in all examples, for convenience and consistency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant